package Tree;

/*******************************************************************************
 * This class represents the Tree of tags, represented as Nodes.
 * Holds a reference to the root Node.
 * @author Tudor Pascu
 * @version FINAL
 *******************************************************************************/
public class Tree
{
    private Node rootNode;

    /**
     * The Constructor of the new Tree.
     * @param node The Node to be set as this tree's root node.
     */
    public Tree(Node node)
    {
        rootNode = node;
    }

    /**
     * This will returnt the root node, so that the tree can be traversed.
     * @return This Tree's root Node.
     */
    public Node getRoot()
    {
        return rootNode;
    }
}
